import request from '@/utils/request'

// 查询PurchaseTrace列表
export function listPurchaseTrace(query) {
  return request({
    url: '/PurchaseTrace/list',
    method: 'get',
    params: query
  })
}

// 查询PurchaseTrace详细
export function getPurchaseTrace(orderNo) {
  return request({
    url: '/PurchaseTrace/' + orderNo,
    method: 'get'
  })
}

// 新增PurchaseTrace
export function addPurchaseTrace(data) {
  return request({
    url: '/PurchaseTrace',
    method: 'post',
    data: data
  })
}

// 修改PurchaseTrace
export function updatePurchaseTrace(data) {
  return request({
    url: '/PurchaseTrace',
    method: 'put',
    data: data
  })
}

// 删除PurchaseTrace
export function delPurchaseTrace(orderNo) {
  return request({
    url: '/PurchaseTrace/' + orderNo,
    method: 'delete'
  })
}
